﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;

namespace MyTcpIp.slowSignal
{
    [StructLayoutAttribute(LayoutKind.Sequential, Pack = 4)]
    public struct SlowSignal
    {

        //public UInt16 ChannelId;
        public UInt16 Year;
        public byte Month;
        public byte Day;
        public byte Hour;
        public byte Minute;
        public byte Second;
        public UInt16 Millisecond;

        [MarshalAs(UnmanagedType.ByValArray, SizeConst = 6)]
        public SlowData[] SlowSignal_t;
        ///// <summary>
        ///// 慢信号数据
        ///// </summary>
        //public float slowSignalData;

        ///// <summary>
        ///// 慢信号平均电压
        ///// </summary>       
        //public float AverageVoltage;							  
    }
}
